package com.gem.day05;

/**
 * 银行账户测试类
 */
public class AccountTest {
	public static void main(String[] args) {
		//通过空参构造创建对象
		Account account = new Account();
		//设置属性
		//account.accountNo = "1111111111111111";
		//account.balance = 10000.0;
		//访问属性
		//System.out.println(account.accountNo);
		//System.out.println(account.balance);

		//使用get和set方法访问和修改属性
		account.setAccountNo("1111111111111111");
		System.out.println(account.getAccountNo());
		account.setOwner("小习");
		System.out.println(account.getOwner());
		//访问方法
		//account.withdraw();

		//调用有参构造创建对象
		Account account2 = new Account("1111111111111111", "123456", 1000.0, "小习", "13800000000000");
		//访问属性
		System.out.println(account2.getPhone());
		System.out.println(account2.getOwner());
	}
}
